use anyhow::Result as AnyResult;

use crate::prelude::BizError;

pub type BizResult<T> = AnyResult<T, BizError>;
pub fn biz_ok<T>(data: T) -> BizResult<T> {
    Ok(data)
}

pub fn biz_err<T>(err: BizError) -> BizResult<T> {
    Err(err.into())
}
